package com.ssm.icc.card.dao.model.equipmentCard;

import com.jee.ssm.common.core.base.BaseModel;
import com.ssm.icc.card.dao.model.card.Card;


import java.io.Serializable;
import java.util.Date;

/**
 *
 * 表名 d_equipment_card
 * @author GaoXiang
 * @version 1.0
 * Create time 2017/05/01
 */
public class EquipmentCard extends BaseModel  {
    /**
     * 标识
     * 表字段 : d_equipment_card.id
     * Create time 2017/05/01
     */
    private String id;

    /**
     * 设备ID
     * 表字段 : d_equipment_card.equipment_id
     * Create time 2017/05/01
     */
    private String equipmentId;

    /**
     * 门禁卡ID
     * 表字段 : d_equipment_card.card_id
     * Create time 2017/05/01
     */
    private String cardId;

    /**
     * 添加时间
     * 表字段 : d_equipment_card.create_time
     * Create time 2017/05/01
     */
    private Date createTime;

    /**
     * 门禁卡绑定房间
     * 表字段 : d_equipment_card.room_id
     * Create time 2017/05/01
     */
    private String roomId;

    /**
     * 用户ID
     * 表字段 : d_equipment_card.user_id
     * Create time 2017/05/01
     */
    private String userId;

    /**
     * 用户与卡的状态（0：申请制卡，1：正常使用）
     * 表字段 : d_equipment_card.type
     * Create time 2017/05/01
     */
    private String type;

    private String roomName;
   /* private Residence residence;
    private Building building;
    private Unit unit;*/
    private String userName;
    private String cardNumber;
    private String residenceName;
    private String equipmentNumber;
    /*private User user;*/
/*    private Equipment equipment;*/
    private Card card;

   /* private Room room;
*/

    /**
     * 构造方法
     */
    public EquipmentCard(String id, String equipmentId, String cardId, Date createTime, String roomId, String userId, String type) {
        this.id = id;
        this.equipmentId = equipmentId;
        this.cardId = cardId;
        this.createTime = createTime;
        this.roomId = roomId;
        this.userId = userId;
        this.type = type;
    }

    /**
     * 构造方法
     */
    public EquipmentCard() {
        super();
    }

    /**
     * 标识
     * @return id 标识
     */
    public String getId() {
        return id;
    }

    /**
     * 标识
     * @param id 标识
     */
    public void setId(String id) {
        this.id = id;
    }

    /**
     * 设备ID
     * @return equipment_id 设备ID
     */
    public String getEquipmentId() {
        return equipmentId;
    }

    /**
     * 设备ID
     * @param equipmentId 设备ID
     */
    public void setEquipmentId(String equipmentId) {
        this.equipmentId = equipmentId;
    }

    /**
     * 门禁卡ID
     * @return card_id 门禁卡ID
     */
    public String getCardId() {
        return cardId;
    }

    /**
     * 门禁卡ID
     * @param cardId 门禁卡ID
     */
    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    /**
     * 添加时间
     * @return create_time 添加时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 添加时间
     * @param createTime 添加时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * 门禁卡绑定房间
     * @return room_id 门禁卡绑定房间
     */
    public String getRoomId() {
        return roomId;
    }

    /**
     * 门禁卡绑定房间
     * @param roomId 门禁卡绑定房间
     */
    public void setRoomId(String roomId) {
        this.roomId = roomId;
    }

    /**
     * 用户ID
     * @return user_id 用户ID
     */
    public String getUserId() {
        return userId;
    }

    /**
     * 用户ID
     * @param userId 用户ID
     */
    public void setUserId(String userId) {
        this.userId = userId;
    }

    /**
     * 用户与卡的状态（0：申请制卡，1：正常使用）
     * @return type 用户与卡的状态（0：申请制卡，1：正常使用）
     */
    public String getType() {
        return type;
    }

    /**
     * 用户与卡的状态（0：申请制卡，1：正常使用）
     * @param type 用户与卡的状态（0：申请制卡，1：正常使用）
     */
    public void setType(String type) {
        this.type = type;
    }

/*    public Residence getResidence() {
        return residence;
    }

    public void setResidence(Residence residence) {
        this.residence = residence;
    }

    public Building getBuilding() {
        return building;
    }

    public void setBuilding(Building building) {
        this.building = building;
    }

    public Unit getUnit() {
        return unit;
    }

    public void setUnit(Unit unit) {
        this.unit = unit;
    }*/

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getEquipmentNumber() {
        return equipmentNumber;
    }

    public void setEquipmentNumber(String equipmentNumber) {
        this.equipmentNumber = equipmentNumber;
    }

/*    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }*/

/*    public Equipment getEquipment() {
        return equipment;
    }

    public void setEquipment(Equipment equipment) {
        this.equipment = equipment;
    }*/

    public Card getCard() {
        return card;
    }

    public void setCard(Card card) {
        this.card = card;
    }

/*    public Room getRoom() {
        return room;
    }

    public void setRoom(Room room) {
        this.room = room;
    }*/

    public String getResidenceName() {
        return residenceName;
    }

    public void setResidenceName(String residenceName) {
        this.residenceName = residenceName;
    }
}